package com.finalcial.Test;



import java.util.List;
import java.util.Map;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.finalcial.dao.CompanyDao;
import com.finalcial.dao.UserDao;
import com.finalcial.dao.WorkDao;
import com.finalcial.service.PowerService;


public class UserTest extends Junit4BaseTest {
	@Autowired 
	private WorkDao workDao;
	@Autowired
	private CompanyDao companyDao;
	@Autowired
	private UserDao userDao;
	@Autowired
	private PowerService pwImpl;
	@Test
	public void test() throws Exception {
		String userMsglist = pwImpl.getUserRoles(9001, "[", "16001");
		System.out.println(userMsglist);
		/*for(Map<String, Object> map:userMsglist) {
			for(String s :map.keySet()) {
				System.out.println(map.get(s));
			}
		}*/
	}
		/*String userName = "张三2";
		String password = "123456";*/
//		List<Map<String, Object>> list = workDao.getWorkMsg(19001, "待办", null, null, null, null, new Date(2018, 1, 12), new Date(2018, 1, 13));
//		for(Map<String, Object> map:list) {
//			for(String s :map.keySet()) {
//				System.out.print(map.get(s));
//			}
//			System.out.println();
//		}
	
	/*static int arr[] = new int[10];
	public static void main(String a[] ) {
		System.out.println(arr[1]);
	}*/
	/*@Test
	public void test2() throws Exception{
		
		String id = TimeIdUtil.getId();
		System.out.println(id);
	}*/
}
